package com.example.springboot_admin.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.example.springboot_admin.pojo.Users;
import com.example.springboot_admin.dao.IUsersDao;
import com.example.springboot_admin.service.IUsersService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author svblack
 * @since 2024-09-12
 */
@Service
public class UsersServiceImpl extends ServiceImpl<IUsersDao, Users> implements IUsersService {

    @Override
    public List<Users> queryByUsername(String username) {
        QueryWrapper<Users> wrapper = new QueryWrapper<>();
        wrapper.like("username", username);
        return this.list(wrapper);
    }

}
